package com.yohann.boot.entity;

import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.Map;

/**
 * @author Yeung Wah
 * @since 2022/1/5
 */
@Getter
@Setter
@Document("log_record")
public class LogRecord {
    /**
     * uuid
     */
    @Id
    private String id;
    /**
     * 开始时间
     */
    private Date startTime;
    /**
     * 结束时间
     */
    private Date endTime;
    /**
     * 耗时
     */
    private Long timeConsuming;
    /**
     * 方法
     */
    private String method;
    /**
     * 描述
     */
    private String description;
    /**
     * 入参
     */
    private Map<String, Object> arguments;
    /**
     * 返回值
     */
    private Object response;
    /**
     * 异常信息
     */
    private Object throwable;
}